import Vue from 'vue'
import Router from 'vue-router'
import loginRegister from '@/views/loginRegister/index'
import Register from '@/views/loginRegister/register'
import Login from '@/views/loginRegister/login'
import ForgotPassword from '@/views/loginRegister/forgotPassword'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/loginRegister',
      name: 'loginRegister',
      component: loginRegister,
      children: [
        {
          path: 'register',
          name: 'register',
          component: Register
        },
        {
          path: 'login',
          name: 'login',
          component: Login
        },
        {
          path: 'forgotPassword',
          name: 'forgotPassword',
          component: ForgotPassword
        }
      ]
    }
  ]
})
